=============== Explanation ===============
'Explanation' – Run the code from A to D in the folder to generate Figure 2 in the paper.


=============== Code ===============
'A_Create_metacommunity.m' – This code is designed to create metacommunities.

'B_Create_localcommunity.m' – This code is designed to create local communities.

'C_Calculate_diversity.m' – This code is designed to calculate diversity.

'D_Plot_Figure2.m' – This code is designed to plot Figure 2.


